DOORS Administrator Logged On

Has anyone developed a test in dxl that return true if the user logged on is the DOORS Database Administrator?
doors36677 - Tue Feb 09 08:29:59 EST 2010

Re: DOORS Administrator Logged On
SystemAdmin - Tue Feb 09 08:44:08 EST 2010

Taken from one of my scripts - checks is the user is Administrator
 

User currUser = find()
UserClass currUserClass = currUser.class
if (stringOf(currUserClass) != "Administrator")
{
  if (!confirm("Only the Administrator user should run this script - Confirm to continue?", msgWarning))
      {
       halt
      }
}

Re: DOORS Administrator Logged On
doors36677 - Tue Feb 09 08:51:01 EST 2010

SystemAdmin - Tue Feb 09 08:44:08 EST 2010

Taken from one of my scripts - checks is the user is Administrator
 

User currUser = find()
UserClass currUserClass = currUser.class
if (stringOf(currUserClass) != "Administrator")
{
  if (!confirm("Only the Administrator user should run this script - Confirm to continue?", msgWarning))
      {
       halt
      }
}

Thanks.

Re: DOORS Administrator Logged On
llandale - Tue Feb 09 16:05:41 EST 2010

if (doorsname == getAdministratorName())
print "yes"
else print "no"